package cn.edu.cqytxy.entity;

/**
 * 刀
 *
 * @author yinjw
 */
public class Knife extends Weapon {

    /**
     * 刀的长度
     */
    private int length;

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    /**
     * 攻击
     */
    @Override
    public void attack() {
        System.out.println("名称为：" + super.getName() + "的,长度为："+this.length + "米的大砍刀发起攻击");
    }
}
